package controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller

public class LogoutController {
	@RequestMapping("/logout")
	public String Logout(HttpServletRequest request){
		request.getSession().removeAttribute("user");
		System.out.println("logout");
		return "login";
	}
}
